package org.cybzacg.convert.matcher;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.cybzacg.convert.core.TypeConverter;

/**
 * 选择结果
 */
@Getter
@AllArgsConstructor
public class SelectionResult {
    private final TypeConverter converter;
    private final MatchResult matchResult;
    private final String selectionReason;
    private final long selectionTime;


    @Override
    public String toString() {
        return String.format("SelectionResult{converter=%s, reason='%s', time=%dms}",
                converter.getClass().getSimpleName(), selectionReason, selectionTime);
    }
}
